|
Quaqua 3.9.5 2007-10-21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextFieldUI
javax.swing.plaf.basic.BasicPasswordFieldUI
ch.randelshofer.quaqua.QuaquaPasswordFieldUI
public class QuaquaPasswordFieldUI
QuaquaPasswordFieldUI.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI |
|---|
javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter |
| Field Summary |
|---|
| Fields inherited from interface ch.randelshofer.quaqua.VisuallyLayoutable |
|---|
CLIP_BOUNDS, COMPONENT_BOUNDS, TEXT_BOUNDS |
| Constructor Summary | |
|---|---|
QuaquaPasswordFieldUI()
|
|
| Method Summary | |
|---|---|
javax.swing.text.View |
create(javax.swing.text.Element elem)
Creates a view (PasswordView) for an element. |
protected javax.swing.text.Caret |
createCaret()
|
protected java.awt.event.FocusListener |
createFocusListener()
|
protected javax.swing.text.Highlighter |
createHighlighter()
|
protected javax.swing.text.Keymap |
createKeymap()
Creates the keymap to use for the text component, and installs any necessary bindings into it. |
protected java.awt.event.MouseListener |
createPopupListener()
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates a UI for a JPasswordField. |
int |
getBaseline(javax.swing.JComponent c,
int width,
int height)
Returns the baseline for the specified component, or -1 if the baseline can not be determined. |
javax.swing.text.EditorKit |
getEditorKit(javax.swing.text.JTextComponent tc)
Fetches the EditorKit for the UI. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
java.awt.Rectangle |
getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
Returns the visual bounds for the specified component, or null if the visual bounds can not be determined. |
java.awt.Insets |
getVisualMargin(javax.swing.text.JTextComponent tc)
|
protected void |
installDefaults()
|
protected void |
installListeners()
|
void |
installUI(javax.swing.JComponent c)
|
protected void |
paintSafely(java.awt.Graphics g)
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallListeners()
|
| Methods inherited from class javax.swing.plaf.basic.BasicPasswordFieldUI |
|---|
getPropertyPrefix |
| Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
|---|
create, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, paint, paintBackground, setView, uninstallKeyboardActions, uninstallUI, update, viewToModel, viewToModel |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuaquaPasswordFieldUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - the JPasswordField
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicTextFieldUIprotected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicTextUIprotected void uninstallDefaults()
uninstallDefaults in class javax.swing.plaf.basic.BasicTextUIprotected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicTextUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicTextUIprotected java.awt.event.FocusListener createFocusListener()
protected java.awt.event.MouseListener createPopupListener()
public javax.swing.text.EditorKit getEditorKit(javax.swing.text.JTextComponent tc)
getEditorKit in class javax.swing.plaf.basic.BasicTextUItc - the text component for which this UI is installed
TextUI.getEditorKit(javax.swing.text.JTextComponent)public java.awt.Insets getVisualMargin(javax.swing.text.JTextComponent tc)
protected void paintSafely(java.awt.Graphics g)
paintSafely in class javax.swing.plaf.basic.BasicTextUIpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in class javax.swing.plaf.basic.BasicTextFieldUIprotected javax.swing.text.Caret createCaret()
createCaret in class javax.swing.plaf.basic.BasicTextUIprotected javax.swing.text.Highlighter createHighlighter()
createHighlighter in class javax.swing.plaf.basic.BasicTextUIpublic javax.swing.text.View create(javax.swing.text.Element elem)
create in interface javax.swing.text.ViewFactorycreate in class javax.swing.plaf.basic.BasicPasswordFieldUIelem - the element
protected javax.swing.text.Keymap createKeymap()
The set of bindings used to create the keymap is fetched
from the UIManager using a key formed by combining the
BasicPasswordFieldUI.getPropertyPrefix() method
and the string .keyBindings. The type is expected
to be JTextComponent.KeyBinding[].
createKeymap in class javax.swing.plaf.basic.BasicTextUIBasicTextUI.getKeymapName(),
JTextComponent
public int getBaseline(javax.swing.JComponent c,
int width,
int height)
VisuallyLayoutable
getBaseline in interface VisuallyLayoutablec - JComponent to calculate baseline forwidth - Width of the component to determine baseline for.height - Height of the component to determine baseline for.
public java.awt.Rectangle getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
VisuallyLayoutable
getVisualBounds in interface VisuallyLayoutablec - JComponent to calculate visual margin fortype - The type of the visual margin.width - Width of the componentheight - Height of the component
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicTextUI
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||